package org.springblade.modules.booksAnalysis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 每日搜索排行实体类
 *
 * @author BladeX
 * @since 2020-08-28
 */
@Data
@TableName("t_b_daily_search_ranking_report")
@ApiModel(value = "DailySearchRankingReport对象", description = "每日搜索排行")
public class DailySearchRankingReport implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@ApiModelProperty(value = "主键")
	@TableId(value = "id", type = IdType.AUTO)
	@Column(columnDefinition = " bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键' ")
	private Integer id;
	/**
	 * 日期YYYY-MM-DD
	 */
	@ApiModelProperty(value = "日期YYYY-MM-DD")
	@Column(columnDefinition = " varchar(10) DEFAULT NULL COMMENT '日期YYYY-MM-DD' ")
	private String date;
	/**
	 * 关键词
	 */
	@ApiModelProperty(value = "关键词")
	@Column(columnDefinition = " varchar(50) DEFAULT NULL COMMENT '关键词' ")
	private String keyWord;
	/**
	 * 搜索次数
	 */
	@ApiModelProperty(value = "搜索次数")
	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '搜索次数' ")
	private Integer searchNum;
	/**
	 * 搜索点击次数
	 */
	@ApiModelProperty(value = "搜索点击次数")
	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '搜索点击次数' ")
	private Integer searchClickNum;
	/**
	 * 搜索点击人数
	 */
	@ApiModelProperty(value = "搜索点击人数")
	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '搜索点击人数' ")
	private Integer searchClickUserNum;

	@Column(columnDefinition = " decimal(10,0) DEFAULT NULL COMMENT '点击率' ")
	private BigDecimal clickRate;
	/**
	 * 引入阅读次数
	 */
	@ApiModelProperty(value = "引入阅读次数")
	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '引入阅读次数' ")
	private Integer introductionOfReadNum;

	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '引入阅读人数' ")
	private Integer introductionOfReadUserNum;
	/**
	 * 引入加购数量
	 */
	@ApiModelProperty(value = "引入加购数量")
	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '引入加购数量' ")
	private Integer introductionOfPurchaseNum;
	/**
	 * 引入付费订单量
	 */
	@ApiModelProperty(value = "引入付费订单量")
	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '引入付费订单量' ")
	private Integer introductionOfPaymentOrderNum;
	/**
	 * 引入付费金额
	 */
	@ApiModelProperty(value = "引入付费金额")
	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '引入付费金额' ")
	private Long introductionOfOrderAmount;
	/**
	 * 引入付费用户数
	 */
	@ApiModelProperty(value = "引入付费用户数")
	@Column(columnDefinition = " int(11) DEFAULT NULL COMMENT '引入付费用户数' ")
	private Integer introductionOfPaymentUserNum;

	/**
	 * 创建时间
	 */
	@Column(columnDefinition = "  datetime COMMENT '创建时间' ")
	private Date created;

}
